home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / AppleShare IP 6.3 SDK / ASIP User Authentication Module / Server UAM SDK / Headers / UAM.h < prev   
Encoding:
C/C++ Source or Header  |  1999-11-01  |  1.4 KB  |  47 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        UAM.h
  3.  
  4.     Contains:    Declarations of the Server UAM API routines
  5.  
  6.     Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  7. */
  8.  
  9. #pragma once
  10.  
  11. #include "OAMTypes.h"
  12.  
  13. enum { kUAMAuthLogin, kUAMAuthLoginContinue, kUAMAuthChangeKey, kUAMAuthChangeKeyContinue };
  14. enum { kUAMAuthObject = 0, kUAMAuthStream = 1 };
  15.  
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. typedef OSStatus     OAMStatus;
  22. typedef OSType        OAMType;
  23. typedef OSType        OAMObjectType;
  24. typedef struct         OAMObjectSpec OAMObjectSpec;
  25. typedef UInt32        OAMShortObjectSpec, *OAMShortObjectSpecPtr;
  26.  
  27. extern OAMStatus     UAMGetAttributeID(UInt32 id, OSType creator, OSType type, void *buffer, UInt32 *size);
  28. extern OAMStatus     UAMSetAttributeID(UInt32 id, OSType creator, OSType type, void *buffer, UInt32 *size);
  29.  
  30. extern OAMStatus     UAMGetAttribute(OAMObjectSpec* obj, OSType creator, OSType type, void *buffer, UInt32 *size);
  31. extern OAMStatus     UAMSetAttribute(OAMObjectSpec* obj, OSType creator, OSType type, void *buffer, UInt32 *size);
  32.  
  33. extern OAMStatus     UAMCreateObject(OAMObjectSpec* obj);
  34. extern UInt32         UAMGetThreadID();
  35. extern UInt32         UAMSleep(UInt32 msec);
  36. extern void         UAMWakeup(UInt32 id,UInt32 refCon);
  37. extern OAMStatus    UAMChangeUID(UInt32 newID);
  38.  
  39. OAMStatus             UAMAuthenticate(SInt32 operation, SInt32 id,
  40.                         void* authState, SInt32 authStateSize, void* authData, SInt32 authDataSize,
  41.                         void* authStateOut, SInt32* authStateSizeOut, void* authDataOut, SInt32* authDataSizeOut);
  42.  
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46.  
  47.